<%@page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>layui</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/business/layui/css/layui.css"
	media="all">

<link
	href="//netdna.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css"
	rel="stylesheet">
<style type="text/css">
	dl.layui-anim.layui-anim-upbit{
		height:100px;
	}

</style>
</head>
<body style="width: 99.9%; ">
	<form class="layui-form" action="">
	<input type="hidden" value="${record.id}"  id="id"  name="id" />
		<table style="margin-top: 10px;">
			<tbody>
				<tr>
					<td style="width: 450px;">
						<div class="layui-form-item">
							<label class="layui-form-label">编号：</label>
							<div class="layui-input-block">
	      						<input type="text" id="number" name="number" value="${record.number}"  lay-verify="number" placeholder="请输入编号" autocomplete="off" class="layui-input">
	    					</div>
						</div>
					</td>
				</tr>
				
				<tr>
					<td style="width: 450px;">
						<div class="layui-form-item">
							<label class="layui-form-label">名称：</label>
							<div class="layui-input-block">
	      						<input type="text" id="name" name="name" value="${record.name}" lay-verify="name" placeholder="请输入编号" autocomplete="off" class="layui-input">
	    					</div>
						</div>
					</td>
				</tr>
				<tr>
					<td style="width: 450px;">
						<div class="layui-form-item">
							<label class="layui-form-label">型号：</label>
							<div class="layui-input-block">
	      						<input type="text" id="model" name="model" value="${record.model}" lay-verify="model" placeholder="请输入编号" autocomplete="off" class="layui-input">
	    					</div>
						</div>
					</td>
				</tr>
				<tr>
					<td style="width: 450px;">
						<div class="layui-form-item">
							<label class="layui-form-label">所属工点：</label>
							<div class="layui-input-block">
	      						<input type="text" id="pid" name="pid" value="${record.pid}" lay-verify="pid" placeholder="请输入编号" autocomplete="off" class="layui-input">
	    					</div>
						</div>
					</td>
				</tr>
				<tr>
					<td style="width: 450px;">
						<div class="layui-form-item">
							<label class="layui-form-label">厂商：</label>
							<div class="layui-input-block">
	    						<select name="manufacturer" lay-verify="required">
							        <option value="1" <c:if test="${record.manufacturer==1 }">selected="selected"</c:if>>LEICA</option>
							        <option value="2" <c:if test="${record.manufacturer==2 }">selected="selected"</c:if>>TRIMBLE</option>
							      </select>
	    					</div>
						</div>
					</td>
				</tr>
				
				<tr>
					<td style="width: 450px;">
						<div class="layui-form-item">
							<label class="layui-form-label">状态：</label>
							<div class="layui-input-block">
	    						<select name="state" lay-verify="required">
							        <option value="0"  <c:if test="${record.state==0 }">selected="selected"</c:if>>正常</option>
							        <option value="1" <c:if test="${record.state==1 }">selected="selected"</c:if>>故障</option>
							        <option value="2" <c:if test="${record.state==2 }">selected="selected"</c:if>>报废</option>
							     </select>
	    					</div>
						</div>
					</td>
				</tr>
				
				<tr>
					<td style="width: 450px;">
						<div class="layui-form-item">
							<label class="layui-form-label">备注：</label>
							<div class="layui-input-block">
	    						<textarea id="comment" name="comment"  required="" lay-verify="comment" placeholder="请输入内容" class="layui-textarea">
	    							${record.comment}
	    						</textarea>
	    					</div>
						</div>
					</td>
				</tr>
			</tbody>
		</table>
		<div style="width:180px;margin-left:350px;margin-top:50px;padding:10px;">
			<button class="layui-btn layui-btn-small layui-btn-red" lay-submit lay-filter="updatemdevicemanage">
					  <i class="layui-icon">&#xe654;</i>保存
			</button>
			<button class="layui-btn layui-btn-small layui-btn-red"  onclick="canclemdevicemanage()">
					  <i class="layui-icon">&#x1007;</i>取消
			</button>
		</div>
	</form>
	<input type="hidden" id="contextPath" name="contextPath"
		value="${pageContext.request.contextPath}">
	<script type="text/javascript"
		src="${pageContext.request.contextPath}/business/jquery.js?<%=Math.random()%>"
		charset="utf-8"></script>
	<script type="text/javascript"
		src="${pageContext.request.contextPath}/business/layui/layui.js?<%=Math.random()%>"
		charset="utf-8"></script>
	<script type="text/javascript"
		src="${pageContext.request.contextPath}/js/mdevicemanage/updatemd.js?<%=Math.random()%>"
		charset="utf-8"></script>
</body>
</html>